package com.infocollect.project.grant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.infocollect.project.grant.mapper.QuestionAuditProcessMapper;
import com.infocollect.project.grant.domain.QuestionAuditProcess;
import com.infocollect.project.grant.service.IQuestionAuditProcessService;

/**
 * 审核记录Service业务层处理
 * 
 * @author infocollect
 * @date 2022-08-27
 */
@Service
public class QuestionAuditProcessServiceImpl implements IQuestionAuditProcessService 
{
    @Autowired
    private QuestionAuditProcessMapper questionAuditProcessMapper;

    /**
     * 查询审核记录
     * 
     * @param id 审核记录ID
     * @return 审核记录
     */
    @Override
    public QuestionAuditProcess selectQuestionAuditProcessById(Long id)
    {
        return questionAuditProcessMapper.selectQuestionAuditProcessById(id);
    }

    /**
     * 查询审核记录列表
     * 
     * @param questionAuditProcess 审核记录
     * @return 审核记录
     */
    @Override
    public List<QuestionAuditProcess> selectQuestionAuditProcessList(QuestionAuditProcess questionAuditProcess)
    {
        return questionAuditProcessMapper.selectQuestionAuditProcessList(questionAuditProcess);
    }

    /**
     * 新增审核记录
     * 
     * @param questionAuditProcess 审核记录
     * @return 结果
     */
    @Override
    public int insertQuestionAuditProcess(QuestionAuditProcess questionAuditProcess)
    {
        return questionAuditProcessMapper.insertQuestionAuditProcess(questionAuditProcess);
    }

    /**
     * 修改审核记录
     * 
     * @param questionAuditProcess 审核记录
     * @return 结果
     */
    @Override
    public int updateQuestionAuditProcess(QuestionAuditProcess questionAuditProcess)
    {
        return questionAuditProcessMapper.updateQuestionAuditProcess(questionAuditProcess);
    }

    /**
     * 批量删除审核记录
     * 
     * @param ids 需要删除的审核记录ID
     * @return 结果
     */
    @Override
    public int deleteQuestionAuditProcessByIds(Long[] ids)
    {
        return questionAuditProcessMapper.deleteQuestionAuditProcessByIds(ids);
    }

    /**
     * 删除审核记录信息
     * 
     * @param id 审核记录ID
     * @return 结果
     */
    @Override
    public int deleteQuestionAuditProcessById(Long id)
    {
        return questionAuditProcessMapper.deleteQuestionAuditProcessById(id);
    }
}
